package com.xzc.refactory.object.moveMethod.c2;

public class Account {
    private AccountType _type;
    private int _dayOverdrawn;

    double overdraftCharge() {
       return _type.overdraftCharge(_dayOverdrawn);
    }

    double bankCharge() {
        double result = 4.5;
        if (_dayOverdrawn > 0) result += overdraftCharge();
        return result;
    }
}
